import request from '@/utils/request'

// 查询出售记录列表
export function listSellRecord(query) {
  return request({
    url: '/console/oms/sellRecord/list',
    method: 'get',
    params: query
  })
}

// 查询出售记录详细
export function getSellRecord(id) {
  return request({
    url: '/console/oms/sellRecord/' + id,
    method: 'get'
  })
}

// 新增出售记录
export function addSellRecord(data) {
  return request({
    url: '/console/oms/sellRecord',
    method: 'post',
    data: data
  })
}

// 修改出售记录
export function updateSellRecord(data) {
  return request({
    url: '/console/oms/sellRecord',
    method: 'put',
    data: data
  })
}

// 删除出售记录
export function delSellRecord(id) {
  return request({
    url: '/console/oms/sellRecord/' + id,
    method: 'delete'
  })
}

// 导出出售记录
export function exportSellRecord(query) {
  return request({
    url: '/console/oms/sellRecord/export',
    method: 'get',
    params: query
  })
}
